//参考：
// https://github.com/vuejs/vuepress/blob/master/packages/docs/docs/.vuepress/config.js
// https://vuepress-theme-reco.recoluan.com/views/1.x/
module.exports = {
  title: '老王的技术日志',
  description: '隔壁老王的技术日志',

  theme: 'vuepress-theme-reco',
  themeConfig: {
    //腾讯 404 公益配置
    noFoundPageByTencent: false,

    mode: 'light', // 默认 auto，auto 跟随系统，dark 暗色模式，light 亮色模式
    modePicker: false, // 默认 true，false 不显示模式调节按钮，true 则显示

    // author
    author: 'xxb',

    // if your docs are in a different repo from your main project:
    docsRepo: 'https://gitee.com/wangqj/document/',
    // if your docs are in a specific branch (defaults to 'master'):
    docsBranch: 'master',
    // if your docs are not at the root of the repo:
    //docsDir: 'doc',
    // defaults to false, set to true to enable
    editLinks: true,
    // custom text for edit link. Defaults to "Edit this page"
    editLinkText: '编辑此页面',


    lastUpdated: '更新时间', // string | boolean

    nav: [
      { text: '首页', link: '/' },
      { text: '.Net', link: '/dotnet/' },
      { text: 'Java', link: '/java/' },
      { text: '数据库', link: '/dbserver/' },
      { text: '前端技术', link: '/front/' },
      { text: '运维技术', link: '/operation/' },
    ],

    sidebar: {
      '/dotnet/': [
        {
          title: '简介',
          collapsable: false,
          children: [
            { title: 'C#知识点', path: '/dotnet/csharp/' }
          ],
        },
      ],

      '/java/': [
        {
          title: '简介',
          collapsable: false,
          children: [
            { title: 'java知识点', path: '/java/java/' }
          ],
        },
      ],

      '/dbserver/': [
        {
          title: '简介',
          collapsable: false,
          children: [
            { title: 'SQL Server', path: '/dbserver/sql/' }
          ],
        },
      ],

      '/front/': [
        {
          title: '简介',
          collapsable: false,
          children: [
            { title: '微信小程序', path: '/front/wxmp/' },
            {
              title: 'uni-app', path: '/front/uni/', children: [
                { title: '快速上手', path: '/front/uni/' },
                { title: '运行问题汇总', path: '/front/uni/running' },
                { title: '代码块', path: '/front/uni/codeblock' }
              ]
            },
          ],
        },
      ],

      '/operation/': [
        {
          title: '简介',
          collapsable: false,
          children: [
            { title: 'K8S', path: '/operation/k8s/' }
          ],
        },
      ],

      sidebarDepth: 1
    },

    head: [
      ['link', { rel: 'icon', href: '/logo.png' }],
      ['script', {}, `
            var _hmt = _hmt || [];
            (function() {
              var hm = document.createElement("script");
              hm.src = "https://hm.baidu.com/hm.js?d6b9b94a6fafaa41c63920e1af80bcaf";
              var s = document.getElementsByTagName("script")[0]; 
              s.parentNode.insertBefore(hm, s);
            })();
        `]
    ]
  }
}
